﻿using System;
namespace CoolCode.DataSource
{
   public   interface IDataBase
    {
        bool Contains<T>(Predicate<T> predicate);
        bool Contains(Object template);
        void Store<T>(T TEntity);
        void Delete<T>(T TEntity);
        void StoreAll<T>(System.Collections.Generic.IEnumerable<T> TList);
        void DeleteAll<T>(System.Collections.Generic.IEnumerable<T> TList);
        System.Collections.Generic.IList<T> Query<T>();
        System.Collections.Generic.IList<T> Query<T>(Predicate<T> predicate);
        System.Collections.Generic.IList<T> Query<T>(Predicate<T> predicate, Comparison<T> comparision);

    }
}
